package com.jboltai.capability.vdb;

import com.jboltai.event.EventError;

public class EmbeddingException extends RuntimeException{

    private EventError error;

    public EmbeddingException(EventError error) {
        this.error = error;
    }

    public EventError getError() {
        return error;
    }

    public void setError(EventError error) {
        this.error = error;
    }

    @Override
    public String getMessage() {
        return this.error == null ? null : this.error.getFullMsg();
    }
}
